<%--
  Created by IntelliJ IDEA.
  User: 鱼
  Date: 2021/4/25 0025
  Time: 11:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% String path=request.getContextPath()+"/"; %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<html class="x-admin-sm">
<head>
    <base href="<%=path%>" >
    <meta charset="UTF-8">
    <title>专利和产品</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="layui/css/font.css">
    <link rel="stylesheet" href="layui/css/xadmin.css">
    <script src="layui/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="layui/js/xadmin.js"></script>
    <script type="text/javascript" src="layui/js/jquery.min.js"></script>
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body layui-table-body layui-table-main">
                    <table class="layui-table layui-form">
                        <thead>
                        <tr>
                            <th colspan="8" style="font-size: 16px;font-weight: bold;">
                                (一)专利及资质概况
                            </th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr align="center">
                            <td width="100">
                                专利情况
                            </td>
                            <td colspan="8">
                                <table >
                                    <tr align="center" style="width:100%">
                                        <td>
                                            序号
                                        </td>
                                        <td>
                                            专利名称
                                        </td>
                                        <td>
                                            专利类型
                                        </td>
                                        <td  width="100">
                                            授权(受理)日期
                                        </td>
                                        <td>
                                            专利号/申请号
                                        </td>
                                        <td>
                                            专利期限
                                        </td>
                                        <td>
                                            所有权人
                                        </td>
                                        <td>
                                            附件
                                        </td>
                                    </tr>
                                    <c:forEach items="${patandproDto.patands}" var="patand" varStatus="v">
                                        <tr align="center">
                                            <td>
                                                ${v.count}
                                            </td>
                                            <td>
                                                <input type="text" name="email" required="" lay-verify="" autocomplete="off" class="layui-input" value="${patand.patentName}">
                                            </td>
                                            <td>
                                                <input type="text" name="email" required="" lay-verify="" autocomplete="off" class="layui-input" value="${patand.patentType}">
                                            </td>
                                            <td>
                                                <input type="text" name="email" required="" lay-verify="" autocomplete="off" class="layui-input" value="${patand.patentAccetpTime}">
                                            </td>
                                            <td>
                                                <input type="text" name="email" required="" lay-verify="" autocomplete="off" class="layui-input" value="${patand.patentNumber}">
                                            </td>
                                            <td>
                                                <input type="text" name="email" required="" lay-verify="" autocomplete="off" class="layui-input" value="${patand.patentLastTime}">
                                            </td>
                                            <td>
                                                <input type="text" name="email" required="" lay-verify="" autocomplete="off" class="layui-input" value="${patand.patentOwner}">
                                            </td>
                                            <td align="right">
                                                <button type="button" class="layui-btn"><i class="layui-icon"></i></button>
                                            </td>
                                        </tr>
                                    </c:forEach>
                                    <tr align="right">
                                        <td colspan="8">
                                            <div>
                                                <button class="layui-btn">
                                                    <i class="layui-icon"></i></button></div>
                                        </td>

                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr align="center"  >
                            <td>
                                商标情况
                            </td>
                            <td colspan="7" align="left" >
                                <table>
                                    <tr align="center">
                                        <td width="10">
                                            序号
                                        </td>
                                        <td>
                                            注册商标
                                        </td>
                                        <td>
                                            商标权人
                                        </td>
                                        <td width="240">
                                            注册有效期限
                                        </td>
                                        <td>
                                            取得方式
                                        </td>
                                        <td>
                                            附件
                                        </td>
                                    </tr>
                                    <c:forEach items="${patandproDto.trademarks}" var="trademark" varStatus="v">
                                        <tr align="center">
                                            <td>
                                                ${v.count}
                                            </td>
                                            <td>
                                                <input type="text" name="email" required="" lay-verify="" autocomplete="off" class="layui-input" value="${trademark.loginTrademark}">
                                            </td>
                                            <td>
                                                <input type="text" name="email" required="" lay-verify="" autocomplete="off" class="layui-input" value="${trademark.trademarkOwner}">
                                            </td>
                                            <td>
                                                <input type="text" name="email" required="" lay-verify="" autocomplete="off" class="layui-input" value="${trademark.loginEffectiveLastTime}">
                                            </td>

                                            <td>
                                                <input type="text" name="email" required="" lay-verify="" autocomplete="off" class="layui-input" value="${trademark.trademarkGetManner}">
                                            </td>
                                            <td align="right">
                                                <button type="button" class="layui-btn"><i class="layui-icon"></i></button>
                                            </td>
                                        </tr>
                                    </c:forEach>
                                    <tr align="right">
                                        <td colspan="7">
                                            <div>
                                                <button class="layui-btn">
                                                    <i class="layui-icon"></i></button></div>
                                        </td>

                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr align="center">
                            <td>
                                企业取得的资质认证和许可情况
                            </td>
                            <td colspan="7">
                                <table>
                                    <tr align="center">
                                        <td>
                                            序号
                                        </td>
                                        <td>
                                            证件名称
                                        </td>
                                        <td>
                                            权利人
                                        </td>
                                        <td>
                                            生产/经营范围
                                        </td>
                                        <td>
                                            许可证书号
                                        </td>
                                        <td>
                                            最新取得时间
                                        </td>
                                        <td>
                                            有效期
                                        </td>
                                        <td>
                                            附件
                                        </td>
                                    </tr>
                                    <c:forEach items="${patandproDto.aptitudess}" var="aptitudes" varStatus="v">
                                    <tr  align="center">
                                        <td>
                                            ${v.count}
                                        </td>
                                        <td>
                                            <input type="text" name="email" required="" lay-verify="" autocomplete="off" class="layui-input" value="${aptitudes.aptitudesName}">
                                        </td>
                                        <td>
                                            <input type="text" name="email" required="" lay-verify="" autocomplete="off" class="layui-input" value="${aptitudes.aptitudesOwner}">
                                        </td>
                                        <td>
                                            <input type="text" name="email" required="" lay-verify="" autocomplete="off" class="layui-input" value="${aptitudes.aptitudesScope}">
                                        </td>
                                        <td>
                                            <input type="text" name="email" required="" lay-verify="" autocomplete="off" class="layui-input" value="${aptitudes.aptitudesCode}">
                                        </td>
                                        <td>
                                            <input type="text" name="email" required="" lay-verify="" autocomplete="off" class="layui-input" value="${aptitudes.aptitudesGettime}">
                                        </td>
                                        <td>
                                            <input type="text" name="email" required="" lay-verify="" autocomplete="off" class="layui-input" value="${aptitudes.aptitudesLasttime}">
                                        </td>
                                        <td align="right">
                                            <button type="button" class="layui-btn"><i class="layui-icon"></i></button>
                                        </td>
                                    </tr>
                                    </c:forEach>
                                    <tr align="right">
                                        <td colspan="8">
                                            <div>
                                                <button class="layui-btn">
                                                    <i class="layui-icon"></i></button></div>
                                        </td>

                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="8" style="font-size: 16px;font-weight: bold;">
                                (二)主营业务及产品
                            </td>

                        </tr>
                        <tr align="center">
                            <td rowspan="2">
                                主营业务及产品
                            </td>
                            <td colspan="7">
                                   <textarea placeholder="暂无数据显示" name="desc" class="layui-textarea">
                                       ${patandproDto.productBLOBs.businessProduct}
                                   </textarea>

                            </td>
                        </tr>
                        <tr>
                            <td colspan="7">
                                <button type="button" class="layui-btn"><i class="layui-icon"></i>上传相关附件</button>
                            </td>
                        </tr>

                        <tr>
                            <td colspan="8" style="font-size: 16px;font-weight: bold;">
                                (三)主要技术及领先性
                            </td>
                        </tr>
                        <tr align="center">
                            <td rowspan="2">
                                主要技术及领先性
                            </td>
                            <td  colspan="7">
                                 <textarea placeholder="暂无数据显示" name="desc" class="layui-textarea">
                                     ${patandproDto.productBLOBs.technologyPrimacy}
                                 </textarea>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="7">
                                <button type="button" class="layui-btn"><i class="layui-icon"></i>上传相关附件</button>
                            </td>
                        </tr>
                        <tr align="center">
                            <td>
                                近3年的研发投入情况
                            </td>
                            <td  colspan="7" align="left">
                                <table align="center">
                                    <tr align="center">
                                        <td>
                                            项目
                                        </td>
                                        <c:forEach items="${patandproDto.researchs}" var="research" varStatus="v">
                                        <td width="260">
                                            ${research.researchYear}
                                        </td>
                                        </c:forEach>

                                    </tr>
                                    <tr align="center">

                                        <td>
                                            研发费用
                                        </td>
                                        <c:forEach items="${patandproDto.researchs}" var="research" >
                                        <td>
                                            <input type="text" name="email" required="" lay-verify="" autocomplete="off" class="layui-input" value="${research.yearCost}">
                                        </td>
                                        </c:forEach>

                                    </tr>
                                    <tr align="center">

                                        <td>
                                            营业收入
                                        </td>
                                        <c:forEach items="${patandproDto.researchs}" var="research" >
                                        <td>
                                            <input type="text" name="email" required="" lay-verify="" autocomplete="off" class="layui-input" value="${research.yearIncome}">
                                        </td>
                                        </c:forEach>

                                    </tr>

                                    <tr align="center">
                                        <td>
                                            研发费用占营业收入的比例
                                        </td>
                                        <c:forEach items="${patandproDto.researchs}" var="research">
                                        <td>
                                            <input type="text" name="email" required="" lay-verify="" autocomplete="off" class="layui-input" value="${research.researchPercent}">
                                        </td>
                                        </c:forEach>

                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="8" style="font-size: 16px;font-weight: bold;">
                                (四)公司储备技术
                            </td>

                        </tr>
                        <tr align="center">
                            <td rowspan="2">
                                描述公司在研项目储备情况介绍/或上传相关资料附件
                            </td>
                            <td colspan="7">
                                   <textarea placeholder="暂无数据显示" name="desc" class="layui-textarea">
                                       ${patandproDto.productBLOBs.technologyReserve}
                                   </textarea>

                            </td>
                        </tr>
                        <tr>
                            <td colspan="7">
                                <button type="button" class="layui-btn"><i class="layui-icon"></i>上传相关附件</button>
                            </td>
                        </tr>
                        <tr align="center">
                            <td colspan="8">
                                <button class="layui-btn" lay-filter="add" lay-submit="">保存</button>
                                <button class="layui-btn" lay-filter="add" lay-submit="">提交</button>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script>
    layui.use(['laydate','form','upload'], function(){
        var laydate = layui.laydate;
        var  form = layui.form;
        var $ = layui.jquery;
        var upload = layui.upload;


        // 监听全选
        form.on('checkbox(checkall)', function(data){

            if(data.elem.checked){
                $('tbody input').prop('checked',true);
            }else{
                $('tbody input').prop('checked',false);
            }
            form.render('checkbox');
        });
//指定允许上传的文件类型
        upload.render({
            elem: '#test3'
            ,url: 'https://httpbin.org/post' //改成您自己的上传接口
            ,accept: 'file' //普通文件
            ,done: function(res){
                layer.msg('上传成功');
                console.log(res);
            }
        });
        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });


    });

    /*用户-停用*/
    function member_stop(obj,id){
        layer.confirm('确认要停用吗？',function(index){

            if($(obj).attr('title')=='启用'){

                //发异步把用户状态进行更改
                $(obj).attr('title','停用')
                $(obj).find('i').html('&#xe62f;');

                $(obj).parents("tr").find(".td-status").find('span').addClass('layui-btn-disabled').html('已停用');
                layer.msg('已停用!',{icon: 5,time:1000});

            }else{
                $(obj).attr('title','启用')
                $(obj).find('i').html('&#xe601;');

                $(obj).parents("tr").find(".td-status").find('span').removeClass('layui-btn-disabled').html('已启用');
                layer.msg('已启用!',{icon: 5,time:1000});
            }

        });
    }

    /*用户-删除*/
    function member_del(obj,id){
        layer.confirm('确认要删除吗？',function(index){
            //发异步删除数据
            $(obj).parents("tr").remove();
            layer.msg('已删除!',{icon:1,time:1000});
        });
    }



    function delAll (argument) {
        var ids = [];

        // 获取选中的id
        $('tbody input').each(function(index, el) {
            if($(this).prop('checked')){
                ids.push($(this).val())
            }
        });

        layer.confirm('确认要删除吗？'+ids.toString(),function(index){
            //捉到所有被选中的，发异步进行删除
            layer.msg('删除成功', {icon: 1});
            $(".layui-form-checked").not('.header').parents('tr').remove();
        });
    }
</script>
</html>
